package com.ruoyi.business.controller.thread;

import com.ruoyi.business.service.CustomThreadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Wu Yuwei
 * @Description: ThreadController
 * @date 2022/11/2 22:52
 */
@RequestMapping("/thread")
@RestController
public class CustomThreadController {

    @Autowired
    private CustomThreadService customthreadService;

    /**
     * 自定义ScheduledThreadPoolExecutor线程池
     */
    @RequestMapping("custmoThreadPool")
    public void customThreadPool(){
        customthreadService.customThreadPool();
    }
}
